#ifndef _DETAILDLG_H
#define _DETAILDLG_H

#include <QDialog>
#include "../define.h"
#include "progform.h"

class QLabel;
class QComboBox;
class QDialogButtonBox;

class DetailDlg : public QDialog
{
	Q_OBJECT

public:
	DetailDlg(const QString& itemNameSuffix, det_u* detail, EsdItemMap* map = 0, QWidget* parent = 0);
	void getHueDetail(det_u* detail);

public slots:
	void saveDetailSetting();	

private:
	void initDetails();

	det_u 	hueDetail;
//	bool	bDlmItem;
	int	detailType;  // 0:hue & vl, 1:dlm, 2:esd

//	short esdChList[MAX_ITEM_QTY];
	EsdItemMap* esdMap;

	// DCC item controls
	QComboBox* cmbRefItem1;
	QComboBox* cmbRefItem2;

//	QLabel* lblAutoCalib;
//	QLabel* lblOfsCancel;
//	QLabel* lblMeasRange1;
//	QLabel* lblGain1;
//	QLabel* lblMeasRange2;
//	QLabel* lblGain2;
//	QLabel* lblMeasRange3;
//	QLabel* lblGain3;
	QComboBox* cmbAutoCalib;
	QComboBox* cmbOfsCancel;
	QComboBox* cmbMeasRange1;
	QComboBox* cmbGain1;
	QComboBox* cmbMeasRange2;
	QComboBox* cmbGain2;
	QComboBox* cmbMeasRange3;
	QComboBox* cmbGain3;
	QDialogButtonBox* buttonBox;
};


#endif // _DETAILDLG_H
